package com.changanw.dynamic.thread.pool.sdk.domain;

import com.changanw.dynamic.thread.pool.sdk.domain.model.ThreadPoolConfigEntity;

import java.util.List;

/**
 * @author changanw
 * @description 动态线程池服务
 * @date 2024/5/15 11:03
 */
public interface IDynamicThreadPoolService {
  /**
   * 获取所有线程池配置
   * @return
   */
  List<ThreadPoolConfigEntity> queryThreadPoolList();

  /**
   * 根据线程池名称获取线程池配置实体
   * @param threadPoolName
   * @return
   */
  ThreadPoolConfigEntity queryThreadPoolConfigByName(String threadPoolName);

  /**
   * 更新线程池配置
   * @param threadPoolConfigEntity
   */
  void updateThreadPoolConfig(ThreadPoolConfigEntity threadPoolConfigEntity);
}
